<!DOCTYPE html>
<html lang="">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= htmlWebpackPlugin.options.title %></title>
    <script>
        // 动态设置根元素字体大小
        function setRem() {
            const baseSize = 16; // 设计稿宽度为 1920px 时的根字体大小，这里假设为 16px
            const designWidth = 1920; // 设计稿宽度
            const viewportWidth = document.documentElement.clientWidth || window.innerWidth;
            document.documentElement.style.fontSize = (viewportWidth / designWidth) * baseSize + 'px';
        }
        // 窗口大小改变时重新设置
        window.addEventListener('resize', setRem);
        // 初始设置
        setRem();
    </script>
</head>


<body>
<noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
        Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
